package com.syg.logback.core;

import com.syg.logback.consts.LogTypeEnum;

import java.io.Serializable;

/**
 * @author syg
 * @version 1.0
 * @date 2021年11月24日19:14:46
 */
public class FileMonitorStep implements Serializable {
    private static final long serialVersionUID = 1L;
    private final String flowId;
    private final String bizNo;
    private final String fileNo;
    private final String exeType;
    private final String exeSts;
    private final String startTime;
    private final String description;

    public FileMonitorStep(FileMonitorStepBuilder builder) {
        this.flowId = builder.getFlowId();
        this.bizNo = builder.getBizNo();
        this.fileNo = builder.getFileNo();
        this.exeType = builder.getExeType();
        this.exeSts = builder.getExeSts();
        this.startTime = builder.getStartTime();
        this.description = builder.getDescription();
    }

    @Override
    public String toString() {
        return LogTypeEnum.FILESTEP + "@@@" + this.flowId + "#@%@#" + this.bizNo + "#@%@#" + this.fileNo + "#@%@#" + this.exeType + "#@%@#" + this.exeSts + "#@%@#" + this.startTime + "#@%@#" + this.description;
    }

    public String getFlowId() {
        return this.flowId;
    }

    public String getBizNo() {
        return this.bizNo;
    }

    public String getFileNo() {
        return this.fileNo;
    }

    public String getExeType() {
        return this.exeType;
    }

    public String getExeSts() {
        return this.exeSts;
    }

    public String getStartTime() {
        return this.startTime;
    }

    public String getDescription() {
        return this.description;
    }
}
